package com.huangwenshuo.futurestarschoolmanagement.service;


import com.aliyun.oss.model.OSSObjectSummary;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huangwenshuo.futurestarschoolmanagement.pojo.dto.File;
import com.huangwenshuo.futurestarschoolmanagement.pojo.vo.FileUploadResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.OutputStream;
import java.util.List;

public interface FileService extends IService<File> {

    FileUploadResult upload(MultipartFile uploadFile);

    List<OSSObjectSummary> list(Integer size);

    FileUploadResult delete(String objectName);

    void exportOssFile(OutputStream os, String objectName) throws IOException;

}
